<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>list users</title>
</head>
<body>
	
<c:if  test="${!empty usersInfoList}">
<table width="100%" class="sortable">
	<tr>
		<td width="150">E-mail</td>
		<td width="150">Imię</td>
		<td width="150">Nazwisko</td>
		<td width="150">Grupa</td>
		<td width="150">Ustaw harmonogram</td>
	</tr>
	<c:forEach items="${usersInfoList}" var="userInfo">
		<tr>
		<form action="${pageContext.request.contextPath}/user/schedule/${userInfo.username}">
			<td height="30">${userInfo.username}</td>
			<td>${userInfo.firstname}</td>
			<td>${userInfo.lastname}</td>
			<td>${userInfo.group_id}</td>
			<td><input type="submit" value="ustaw" /></td>
		</form>
		</tr>
	</c:forEach>
</table>
</c:if>
